<template>
	<view class="">
		<view class="mask" v-if="isShowBeautifulShare">
			<view class="share_code_box">
				<image src="/static/wifi/package_details.png"  mode="widthFix" class="share_code_img"></image>
				<view class="close_icon_box">
					<image src="/static/home/icon-close-new.png" mode="" class="close_icon"
						@click="handleClosedetailsPoster">
					</image>
				</view>
				<view class="detail_table">
					<u-table fontSize='22' padding="17rpx 0rpx" border-color="#fff">
						<u-tr v-for="(item, index) in newbeautifulPoster" :key="index">
							<u-td >{{ item.name.slice(0, -2) }}</u-td>
							<u-td>{{ item.name.slice(-2) }}</u-td>
							<u-td>{{ item.price }}</u-td>
							<u-td style="color: #D29843;">{{ item.show_yj }}</u-td>
						</u-tr>
					</u-table>
				</view>

		
			</view>

		
		</view>
	</view>
</template>

<script>
	export default {
		props: ['detailsPosterInfo'],
		data() {
			return {
				isShowBeautifulShare: false,
				newbeautifulPoster: {},
			}
		},
		watch: {
			detailsPosterInfo: {
				handler(newVal) {
					this.newbeautifulPoster = newVal
				}
			}
		},
		methods: {

			// 关闭
			handleClosedetailsPoster() {
				this.$emit('handleClosedetailsPoster', '')
			},
		}
	}
</script>

<style lang="scss" scoped>
	.mask {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background-color: rgba(0, 0, 0, 0.5);
		/* 遮罩层样式 */
		display: flex;
		justify-content: center;
		align-items: center;
		z-index: 1000;

		.share_code_box {
			position: absolute;
			top: 50%;
			left: 50%;
			transform: translate(-50%, -50%);

			.share_code_img {
				width: 473rpx;
				height: 680rpx;
				border-radius: 12rpx;
			}

			.btn_box {
				position: absolute;
				bottom: -40rpx;
				left: 0;
				display: flex;
				width: 100%;
			}

			.close_icon_box {
				position: absolute;
				top: -40rpx;
				right: -54rpx;

				.close_icon {
					width: 50rpx;
					height: 50rpx;
				}
			}
			.detail_table{
				width: 431rpx;
				height: 380rpx;
				overflow: auto;
				font-size: 22rpx;
				position: absolute;
				top: 220rpx;
				left: 18rpx;
				/deep/ .u-table{
					border:none;
				}
				/deep/ .u-tr{
					border: none !important;
				}
				/deep/ .u-td{
					border: none !important;
				}
				/deep/ .u-tr:nth-child(odd) {
				  background-color: #f5f5f5;
				}
			}
		}
	}
</style>